package com.net.xpay.common.dao.invoice;

import com.net.xpay.common.domain.invoice.DeliveryAddress;
import com.net.common.dao.PagedMapper;
import com.net.common.annotation.DataCommon;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@DataCommon
@Repository
public interface DeliveryAddressMapper extends PagedMapper<Long, DeliveryAddress> {
    List<DeliveryAddress> listByUserId(@Param("userId") Long userId);

    int updateDeliveryAddressTypeAsNonDefault(@Param("userId")Long userId);
}
